#pragma once

#include "Base/Tests/Test.Application.h"

#undef  APP_NAME
#define APP_NAME	TestMessage
#undef  APP_BASE
#define APP_BASE	TestApp


class APP_NAME : public APP_BASE
{
public:
	APP_NAME (IPlatform *platform, EDevice::type deviceType) :
		APP_BASE( platform, deviceType )
	{
	}

	void OnEnter () override
	{
		ESS()->GetApplication()->GetPlatform()->ShowMessage( this, &MessageCallback,
			"msg caption", "message text", "positive", "negative" );
	}

	static void MessageCallback (const BaseObjectPtr &obj, int result)
	{
		DEBUG_CONSOLE( (string("MessageCallback result: ") << result ).cstr() );
	}
};